// 助战召唤兽参战或休息

// @ts-ignore
export async function execute(client_id,message_json) {
    let index =  message_json["助战编号"];
    let pet_index =  message_json["序列"]-1;
    let characters = G.HelpFight.get_help_fight_characters(client_id,index-1);
    if(characters === undefined){
         ClientUtils.send_basic_prompt(client_id,"助战角色不存在");
         return;
    }
    let pet_data = characters["召唤兽"][pet_index];
    if(pet_data === undefined){
        ClientUtils.send_basic_prompt(client_id, "召唤兽不存在");
        return;
    }
	G.Characters.enable_pet_fight(characters["id"],pet_data,pet_index);
    ClientUtils.send_client_message(client_id,2006,characters["召唤兽"]);
}